Einhugur macOS Bridge plugin.

EinhugurMacOSBridge.NSColor Class (desktop - console - web)

An object that stores color data and sometimes opacity (alpha value).

EinhugurCoreBridge.NSObject
   NSColor

class EinhugurMacOSBridge.NSColor

Constructors

NSColorA constructor which creates NSColor from Xojo color value.

Properties

AlphaComponentThe alpha (opacity) component value of the color.
BlackComponentThe black component value of the color.
BlueComponentThe blue component value of the color.
BrightnessComponentThe brightness component value of the color.
ClassName (Inherited) (desktop - console) Returns the name of the Cocoa class under the hood as String.
ColorTypeReturn the type of the color, which in turn determines which accessors are valid for this color.
ColorValueReturns Xojo Color value from the NSColor object.
CyanComponentThe cyan component value of the color.
GreenComponentThe green component value of the color.
Handle (Inherited) Returns Integer handle to the native NSObject structure.
HueComponentThe hue component value of the color.
MagentaComponentThe magenta component value of the color.
RedComponentThe red component value of the color.
SaturationComponentThe saturation component value of the color.
YellowComponentThe yellow component value of the color.

Methods

shared AlternateSelectedControlTextColorThe color to use for text in a selected control.
shared AlternatingContentBackgroundColorsThe colors to use for alternating content, typically found in table views and collection views.
shared CastDoes deep cast on incoming NSObject to NSColor.
ColorWithAlphaComponentCreates a new color object that has the same color space and component values as the current color object, but the specified alpha component.
ColorWithSystemEffectReturns a new color object that represents the current color modified to include the specified visual effect.
shared ControlAccentColorThe user's current accent color preference.
shared ControlBackgroundColorThe color to use for the background of large controls, such as scroll views or table views.
shared ControlColorThe color to use for the flat surfaces of a control.
shared ControlTextColorThe color to use for text on enabled controls.
shared DisabledControlTextColorThe color to use for text on disabled controls.
shared FindHighlightColorThe highlight color to use for the bubble that shows inline search result values.
shared FromIntegerPtrConstructs NSColor object from Integer handle coming from declares or 3rd party plugin.
shared GridColorThe color to use for the optional gridlines, such as those in a table view.
shared HeaderTextColorThe color to use for text in header cells in table views and outline views.
shared HighlightColorThe color to use as a virtual light source on the screen.
shared KeyboardFocusIndicatorColorThe color to use for the keyboard focus ring around controls.
shared LabelColorThe primary color to use for text labels.
shared LinkColorThe color to use for links.
shared PlaceholderTextColorThe color to use for placeholder text in controls or text views.
shared QuaternaryLabelColorThe quaternary color to use for text labels and separators.
Release (Inherited) Releases the NSObject.
Retain (Inherited) Retains the NSObject
shared ScrubberTexturedBackgroundColorThe patterned color to use for the background of a scrubber control.
shared SecondaryLabelColorThe secondary color to use for text labels.
shared SelectedContentBackgroundColorThe color to use for the background of selected and emphasized content.
shared SelectedControlColorThe color to use for the face of a selected control—that is, a control that has been clicked or is being dragged.
shared SelectedControlTextColorThe color to use for text on disabled controls.
shared SelectedMenuItemTextColorThe color to use for the text in menu items.
shared SelectedTextBackgroundColorThe color to use for the background of selected text.
shared SelectedTextColorThe color to use for selected text.
shared SeparatorColorThe color to use for separators between different sections of content.
shared ShadowColorThe color to use for virtual shadows cast by raised objects on the screen.
shared SystemBlueColorReturns a color object for blue that automatically adapts to vibrancy and accessibility settings.
shared SystemBrownColorReturns a color object for brown that automatically adapts to vibrancy and accessibility settings.
shared SystemGrayColorReturns a color object for gray that automatically adapts to vibrancy and accessibility settings.
shared SystemGreenColorReturns a color object for green that automatically adapts to vibrancy and accessibility settings.
shared SystemIndigoColorReturns a color object for indigo that automatically adapts to vibrancy and accessibility settings.
shared SystemOrangeColorReturns a color object for orange that automatically adapts to vibrancy and accessibility settings.
shared SystemPinkColorReturns a color object for pink that automatically adapts to vibrancy and accessibility settings.
shared SystemPurpleColorReturns a color object for purple that automatically adapts to vibrancy and accessibility settings.
shared SystemRedColorReturns a color object for red that automatically adapts to vibrancy and accessibility settings.
shared SystemTealColorReturns a color object for teal that automatically adapts to vibrancy and accessibility settings.
shared SystemYellowColorReturns a color object for yellow that automatically adapts to vibrancy and accessibility settings.
shared TertiaryLabelColorThe tertiary color to use for text labels.
shared TextBackgroundColorThe color to use for the background area behind text.
shared TextColorThe color to use for text.
shared UnderPageBackgroundColorThe color to use in the area beneath your window's views.
shared UnemphasizedSelectedContentBackgroundColorThe color to use for selected text in an unemphasized context.
shared UnemphasizedSelectedTextBackgroundColorThe color to use for the text background in an unemphasized context.
shared UnemphasizedSelectedTextColorThe color to use for selected text in an unemphasized context.
shared WindowBackgroundColorThe color to use for the window background.
shared WindowFrameTextColorThe color to use for text in a window's frame.

Enumerations

NSColorSystemEffectValuesEnum to use with the ColorWithSystemEffect function.
NSColorTypeValuesConstants that indicate the color's type, and which methods may be called on the color object.

Constants

Version = 5.0 (Inherited)

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Unsupported Platforms:

  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit